Monitoring report generation method and apparatus, and user equipment

ABSTRACT

Embodiments of the present disclosure provide a monitoring report generation method where the method includes: receiving a monitoring parameter broadcast by a base station; monitoring energy of each discovery resource in a resource pool within a discovery time domain; determining a busy resource and an idle resource; and generating a monitoring report when a proportion of the busy resource or the idle resource in a predetermined quantity of consecutive discovery time domains meets a reporting condition corresponding to the busy resource or the idle resource, and sending the monitoring report to the base station. This resolves a problem in the related technology that: because D2D user equipment cannot accurately obtain a quantity of resource collision times in a cell, the base station cannot accurately learn a resource status in the cell, and it is ensured that the base station can accurately learn the resource status in the cell.

CROSS-REFERENCE TEMPLATES

This application is a continuation of U.S. patent application Ser. No.15/270,700, filed on Sep. 20, 2016, which is a continuation ofInternational Application No. PCT/CN2014/073821, filed on Mar. 21, 2014.All of the afore-mentioned patent applications are hereby incorporatedby reference in their entireties.

TECHNICAL FIELD

The present disclosure relates to the field of network technologies, andin particular, to a discovery monitoring report generation method andapparatus, and user equipment.

BACKGROUND

A D2D (Device to Device, device-to-device) communications technology isa technology used by D2D user equipments in an LTE-A (Long TermEvolution-Advanced, Long Term Evolution Advanced) system to directlyperform end-to-end communication by multiplexing resources of cellularusers in a cell. Because an evolved NodeB eNB (evolved Node B, evolvedNodeB) in the LTE-A system does not monitor a status of resources usedby D2D user equipment, to prevent incapability of performingcommunication by the D2D user equipment with insufficient resources, theD2D user equipment needs to report the monitored resource status to theevolved NodeB, so that the evolved NodeB can perform, according to thereceived resource status, proper scheduling on the resources used by theD2D user equipment.

In a traditional process of monitoring a resource status, the D2D userequipment monitors a discovery resource of a cell. When the D2D userequipment cannot parse a received signal on a discovery resource, theD2D user equipment marks one resource collision, and counts a quantityof resource collision times in a discovery time domain, and reports thequantity of resource collision times to the evolved NodeB as amonitoring report.

In a process of implementing the present disclosure, the relatedtechnology at least has the following disadvantages: there is arelatively large quantity of causes of a failure in correctly parsing areceived signal by the D2D user equipment, for example, occurrence of acollision, extremely poor channel quality, or interference from a nearbyfrequency, and the D2D user equipment may possibly also mark, asresource collision, a status in which a received signal cannot becorrectly parsed due to extremely poor channel quality or interferencefrom a nearby frequency, the quantity of resource collision times thatis determined by the D2D user equipment is inaccurate; consequently, theevolved NodeB cannot accurately learn a resource status in the cell.

SUMMARY

To resolve a problem in a related technology that: because D2D userequipment cannot accurately obtain a quantity of resource collisiontimes in a cell, the base station cannot accurately learn a resourcestatus in the cell, embodiments of the present disclosure provide adiscovery monitoring report generation method and apparatus, and userequipment. The technical solutions are as follows:

According to a first aspect, a monitoring report generation apparatus isprovided, applied to user equipment in a device-to-device D2Dcommunications system, where the apparatus includes:

a receiving module, configured to receive a monitoring parameterbroadcast by a base station, where the monitoring parameter includes anenergy threshold corresponding to a busy resource, a reporting conditioncorresponding to the busy resource, an energy threshold corresponding toan idle resource, a reporting condition corresponding to the idleresource, a resource pool, and a discovery time domain used to indicatethat the user equipment performs monitoring;

a monitoring module, configured to monitor energy of at least onediscovery resource in the resource pool within the at least onediscovery time domain;

a determining module, configured to determine a busy resource and anidle resource in the at least one discovery time domain according to theenergy of the at least one of the discovery resource, the energythreshold corresponding to the busy resource, and the energy thresholdcorresponding to the idle resource;

a first generation module, configured to generate a monitoring reportwhen a proportion of the busy resource in a predetermined quantity ofconsecutive discovery time domains in the at least one discovery timedomain meets the reporting condition corresponding to the busy resource,or when a proportion of the idle resource in consecutive discovery timedomains in the at least one discovery time domain meets the reportingcondition corresponding to the idle resource, where the monitoringreport includes the proportion of the busy resource in the consecutivediscovery time domains or the proportion of the idle resource in theconsecutive discovery time domains; and

a sending module, configured to send the monitoring report to the basestation.

In a first possible implementation manner of the first aspect, the busyresource is a discovery resource whose energy is greater than the energythreshold corresponding to the busy resource, and the idle resource is adiscovery resource whose energy is less than the energy thresholdcorresponding to the idle resource.

With reference to the first aspect or the first possible implementationmanner of the first aspect, in a second possible implementation manner,the apparatus further includes:

a first calculation module, configured to calculate a proportion of thebusy resource in each discovery time domain.

With reference to the first aspect, the first possible implementationmanner of the first aspect, or the second possible implementation mannerof the first aspect, in a third possible implementation manner, thefirst calculation module includes:

a first counting unit, configured to count a quantity of the busyresource and a quantity of the idle resource in each discovery timedomain; and a first calculation unit, configured to divide the quantityof the busy resource by a sum of the quantity of the busy resource andthe quantity of the idle resource, to obtain the proportion of the busyresource in each discovery time domain; or

a second counting unit, configured to count a quantity of the busyresource and a quantity of the idle resource in each subframe of eachdiscovery time domain; a second calculation unit, configured to dividethe quantity of the busy resource in each of all the subframes by a sumof the quantity of the busy resource and the quantity of the idleresource, to obtain a proportion of the busy resource in each of all thesubframes; and a third calculation unit, configured to calculate aweighted average value of the proportion of the busy resource in eachsubframe of each discovery time domain, to obtain the proportion of thebusy resource in each discovery time domain.

With reference to the first aspect, or at least one of the firstpossible implementation manner of the first aspect to the third possibleimplementation manner of the first aspect, in a fourth possibleimplementation manner, the apparatus further includes:

a second calculation module, configured to calculate a proportion of theidle resource in each discovery time domain.

With reference to the first aspect, or at least one of the firstpossible implementation manner of the first aspect to the fourthpossible implementation manner of the first aspect, in a fifth possibleimplementation manner, the second calculation module includes:

a third counting unit, configured to count a quantity of the busyresource and a quantity of the idle resource in each discovery timedomain; and a fourth calculation unit, configured to divide the quantityof the idle resource by a sum of the quantity of the busy resource andthe quantity of the idle resource, to obtain the proportion of the idleresource in each discovery time domain; or

a fourth counting unit, configured to count a quantity of the busyresource and a quantity of the idle resource in each subframe of eachdiscovery time domain; a fifth calculation unit, configured to dividethe quantity of the idle resource in each of all the subframes by a sumof the quantity of the busy resource and the quantity of the idleresource, to obtain a proportion of the idle resource in each of all thesubframes; and a sixth calculation unit, configured to calculate aweighted average value of the proportion of the idle resource in eachsubframe of each discovery time domain, to obtain the proportion of theidle resource in each discovery time domain.

With reference to the first aspect, or at least one of the firstpossible implementation manner of the first aspect to the fifth possibleimplementation manner of the first aspect, in a sixth possibleimplementation manner, when the predetermined quantity is 1, themonitoring report includes the proportion of the busy resource in thediscovery time domain or the proportion of the busy resource in thediscovery time domain; or

when the predetermined quantity is greater than 1, the monitoring reportincludes a weighted average value of the proportion of the busy resourcein the predetermined quantity of consecutive discovery time domains or aweighted average value of the proportion of the idle resource in thepredetermined quantity of consecutive discovery time domains.

With reference to the first aspect, or at least one of the firstpossible implementation manner of the first aspect to the sixth possibleimplementation manner of the first aspect, in a seventh possibleimplementation manner,

the monitoring report further includes a quantity of success times and aquantity of failure times, the quantity of success times is obtained bycounting a quantity of times of existence of idle resource selection ineach discovery time domain, and the quantity of failure times isobtained by counting a quantity of times of nonexistence of idleresource selection in each discovery time domain.

With reference to the first aspect, or at least one of the firstpossible implementation manner of the first aspect to the seventhpossible implementation manner of the first aspect, in an eighthpossible implementation manner, the monitoring parameter furtherincludes a predetermined probability threshold, and the apparatusfurther includes:

a second generation module, configured to generate a random number; and

the sending module is further configured to: when the random number isgreater than the predetermined probability threshold, send themonitoring report to the base station.

According to a second aspect, user equipment is provided, where the userequipment is in a device-to-device D2D communications system, and theuser equipment includes a receiver, a processor, and a transmitter,where:

the receiver is configured to receive a monitoring parameter broadcastby a base station, where the monitoring parameter includes an energythreshold corresponding to a busy resource, a reporting conditioncorresponding to the busy resource, an energy threshold corresponding toan idle resource, a reporting condition corresponding to the idleresource, a resource pool, and a discovery time domain used to indicatethat the user equipment performs monitoring;

the processor is configured to monitor energy of at least one discoveryresource in the resource pool within the at least one discovery timedomain;

the processor is further configured to determine a busy resource and anidle resource in the at least one discovery time domain according to theenergy of the at least one discovery resource, the energy thresholdcorresponding to the busy resource, and the energy thresholdcorresponding to the idle resource;

the processor is further configured to generate a monitoring report whena proportion of the busy resource in a predetermined quantity ofconsecutive discovery time domains in the at least one discovery timedomain meets the reporting condition corresponding to the busy resource,or when a proportion of the idle resource in consecutive discovery timedomains in the at least one discovery time domain meets the reportingcondition corresponding to the idle resource, where the monitoringreport includes the proportion of the busy resource in the consecutivediscovery time domains or the proportion of the idle resource in theconsecutive discovery time domains; and

the transmitter is configured to send the monitoring report to the basestation.

In a first possible implementation manner of the second aspect, the busyresource is a discovery resource whose energy is greater than the energythreshold corresponding to the busy resource, and the idle resource is adiscovery resource whose energy is less than the energy thresholdcorresponding to the idle resource.

With reference to the second aspect or the first possible implementationmanner of the second aspect, in a second possible implementation manner,the processor is further configured to calculate a proportion of thebusy resource in each discovery time domain.

With reference to the second aspect, the first possible implementationmanner of the second aspect, or the second possible implementationmanner of the second aspect, in a third possible implementation manner,the processor is further configured to count a quantity of the busyresource and a quantity of the idle resource in each discovery timedomain; and the processor is further configured to divide the quantityof the busy resource by a sum of the quantity of the busy resource andthe quantity of the idle resource, to obtain the proportion of the busyresource in each discovery time domain; or

the processor is further configured to count a quantity of the busyresource and a quantity of the idle resource in each subframe of eachdiscovery time domain; the processor is further configured to divide thequantity of the busy resource in each of all the subframes by a sum ofthe quantity of the busy resource and the quantity of the idle resource,to obtain a proportion of the busy resource in each of all thesubframes; and the processor is further configured to calculate aweighted average value of the proportion of the busy resource in eachsubframe of each discovery time domain, to obtain the proportion of thebusy resource in each discovery time domain.

With reference to the second aspect, or at least one of the firstpossible implementation manner of the second aspect to the thirdpossible implementation manner of the second aspect, in a fourthpossible implementation manner, the processor is further configured tocalculate a proportion of the idle resource in each discovery timedomain.

With reference to the second aspect, or at least one of the firstpossible implementation manner of the second aspect to the fourthpossible implementation manner of the second aspect, in a fifth possibleimplementation manner, the processor is further configured to count aquantity of the busy resource and a quantity of the idle resource ineach discovery time domain; and the processor is further configured todivide the quantity of the idle resource by a sum of the quantity of thebusy resource and the quantity of the idle resource, to obtain theproportion of the idle resource in each discovery time domain; or

the processor is further configured to count a quantity of the busyresource and a quantity of the idle resource in each subframe of eachdiscovery time domain; the processor is further configured to divide thequantity of the idle resource in each of all the subframes by a sum ofthe quantity of the busy resource and the quantity of the idle resource,to obtain a proportion of the idle resource in each of all thesubframes; and the processor is further configured to calculate aweighted average value of the proportion of the idle resource in eachsubframe of each discovery time domain, to obtain the proportion of theidle resource in each discovery time domain.

With reference to the second aspect, or at least one of the firstpossible implementation manner of the second aspect to the fifthpossible implementation manner of the second aspect, in a sixth possibleimplementation manner,

when the predetermined quantity is 1, the monitoring report includes theproportion of the busy resource in the discovery time domain or theproportion of the busy resource in the discovery time domain; or

when the predetermined quantity is greater than 1, the monitoring reportincludes a weighted average value of the proportion of the busy resourcein the predetermined quantity of consecutive discovery time domains or aweighted average value of the proportion of the idle resource in thepredetermined quantity of consecutive discovery time domains.

With reference to the second aspect, or at least one of the firstpossible implementation manner of the second aspect to the sixthpossible implementation manner of the second aspect, in a seventhpossible implementation manner, the monitoring report further includes aquantity of success times and a quantity of failure times, the quantityof success times is obtained by counting a quantity of times ofexistence of idle resource selection in each discovery time domain, andthe quantity of failure times is obtained by counting a quantity oftimes of nonexistence of idle resource selection in each discovery timedomain.

With reference to the second aspect, or at least one of the firstpossible implementation manner of the second aspect to the seventhpossible implementation manner of the second aspect, in an eighthpossible implementation manner, the monitoring parameter furtherincludes a predetermined probability threshold,

the processor is further configured to generate a random number; and

the transmitter is further configured to: when the random number isgreater than the predetermined probability threshold, send themonitoring report to the base station.

According to a third aspect, a monitoring report generation method isprovided, applied to user equipment in a device-to-device D2Dcommunications system, where the method includes:

receiving a monitoring parameter broadcast by a base station, where themonitoring parameter includes an energy threshold corresponding to abusy resource, a reporting condition corresponding to the busy resource,an energy threshold corresponding to an idle resource, a reportingcondition corresponding to the idle resource, a resource pool, and adiscovery time domain used to indicate that the user equipment performsmonitoring;

monitoring energy of at least one discovery resource in the resourcepool within the at least one discovery time domain;

determining a busy resource and an idle resource in the at least onediscovery time domain according to the energy of the at least onediscovery resource, the energy threshold corresponding to the busyresource, and the energy threshold corresponding to the idle resource;and

generating a monitoring report when a proportion of the busy resource inconsecutive discovery time domains in the at least one discovery timedomain meets the reporting condition corresponding to the busy resource,or when a proportion of the idle resource in consecutive discovery timedomains in the at least one discovery time domain meets the reportingcondition corresponding to the idle resource, and sending the monitoringreport to the base station, where the monitoring report includes theproportion of the busy resource in the consecutive discovery timedomains or the proportion of the idle resource in the consecutivediscovery time domains.

In a first possible implementation manner of the third aspect, the busyresource is a discovery resource whose energy is greater than the energythreshold corresponding to the busy resource, and the idle resource is adiscovery resource whose energy is less than the energy thresholdcorresponding to the idle resource.

With reference to the third aspect or the first possible implementationmanner of the third aspect, in a second possible implementation manner,after the determining a busy resource and an idle resource in the atleast one discovery time domain, the method further includes:

calculating a proportion of the busy resource in each discovery timedomain.

With reference to the third aspect, the first possible implementationmanner of the third aspect, or the second possible implementation mannerof the third aspect, in a third possible implementation manner, thecalculating a proportion of the busy resource in each discovery timedomain includes:

counting a quantity of the busy resource and a quantity of the idleresource in each discovery time domain, and dividing the quantity of thebusy resource by a sum of the quantity of the busy resource and thequantity of the idle resource, to obtain the proportion of the busyresource in each discovery time domain; or

counting a quantity of the busy resource and a quantity of the idleresource in each subframe of each discovery time domain, dividing thequantity of the busy resource in each of all the subframes by a sum ofthe quantity of the busy resource and the quantity of the idle resource,to obtain a proportion of the busy resource in each of all thesubframes, and calculating a weighted average value of the proportion ofthe busy resource in each subframe of each discovery time domain, toobtain the proportion of the busy resource in each discovery timedomain.

With reference to the third aspect, or at least one of the firstpossible implementation manner of the third aspect to the third possibleimplementation manner of the third aspect, in a fourth possibleimplementation manner, after the determining a busy resource and an idleresource in the at least one discovery time domain, the method furtherincludes:

calculating a proportion of the idle resource in each discovery timedomain.

With reference to the third aspect, or at least one of the firstpossible implementation manner of the third aspect to the fourthpossible implementation manner of the third aspect, in a fifth possibleimplementation manner, the calculating a proportion of the idle resourcein each discovery time domain includes:

counting a quantity of the busy resource and a quantity of the idleresource in each discovery time domain, and dividing the quantity of theidle resource by a sum of the quantity of the busy resource and thequantity of the idle resource, to obtain the proportion of the idleresource in each discovery time domain; or

counting a quantity of the busy resource and a quantity of the idleresource in each subframe of each discovery time domain, dividing thequantity of the idle resource in each of all the subframes by a sum ofthe quantity of the busy resource and the quantity of the idle resource,to obtain a proportion of the idle resource in each of all thesubframes, and calculating a weighted average value of the proportion ofthe idle resource in each subframe of each discovery time domain, toobtain the proportion of the idle resource in each discovery timedomain.

With reference to the third aspect, or at least one of the firstpossible implementation manner of the third aspect to the fifth possibleimplementation manner of the third aspect, in a sixth possibleimplementation manner,

when the predetermined quantity is 1, the monitoring report includes theproportion of the busy resource in the discovery time domain or theproportion of the busy resource in the discovery time domain; or

when the predetermined quantity is greater than 1, the monitoring reportincludes a weighted average value of the proportion of the busy resourcein the predetermined quantity of consecutive discovery time domains or aweighted average value of the proportion of the idle resource in thepredetermined quantity of consecutive discovery time domains.

With reference to the third aspect, or at least one of the firstpossible implementation manner of the third aspect to the sixth possibleimplementation manner of the third aspect, in a seventh possibleimplementation manner, the monitoring report further includes a quantityof success times and a quantity of failure times, the quantity ofsuccess times is obtained by counting a quantity of times of existenceof idle resource selection in each discovery time domain, and thequantity of failure times is obtained by counting a quantity of times ofnonexistence of idle resource selection in each discovery time domain.

With reference to the third aspect, or at least one of the firstpossible implementation manner of the third aspect to the seventhpossible implementation manner of the third aspect, in an eighthpossible implementation manner, the monitoring parameter furtherincludes a predetermined probability threshold, and the method furtherincludes:

generating a random number; and

when the random number is greater than the predetermined probabilitythreshold, executing the step of sending the monitoring report to thebase station.

Beneficial effects of the technical solutions provided in theembodiments of the present disclosure are as follows:

Energy of each discovery resource in a resource pool is monitored withina discovery time domain; and it is determined, according to the energyof each discovery resource, whether a proportion of a busy resource oran idle resource in the discovery time domain meets a correspondingreporting condition, a monitoring report is generated by using theproportion of the busy resource or the idle resource when the reportingcondition is met, and the monitoring report is sent to a base station.This resolves a problem in the related technology that: because D2D userequipment cannot accurately obtain a quantity of resource collisiontimes in a cell, the base station cannot accurately learn a resourcestatus in the cell. Because the D2D user equipment may accuratelymonitor energy of a discovery resource, and determine a monitoringreport according to the energy of the discovery resource, the monitoringreport reported to the base station may relatively accurately reflectthe resource status in the cell, and it is ensured that the base stationcan accurately learn the resource status in the cell.

BRIEF DESCRIPTION OF DRAWINGS

To describe the technical solutions in the embodiments of the presentdisclosure more clearly, the following briefly describes theaccompanying drawings required for describing the embodiments.Apparently, the accompanying drawings in the following description showmerely some embodiments of the present disclosure, and persons ofordinary skill in the art may still derive other drawings from theseaccompanying drawings without creative efforts.

FIG. 1 is a schematic diagram of an implementation environment involvedin a monitoring report generation method according to some embodimentsof the present disclosure;

FIG. 2 is a schematic structural diagram of a monitoring reportgeneration apparatus according to an embodiment of the presentdisclosure;

FIG. 3 is a schematic structural diagram of a monitoring reportgeneration apparatus according to another embodiment of the presentdisclosure;

FIG. 4 is a schematic structural diagram of user equipment according toan embodiment of the present disclosure;

FIG. 5 is a schematic structural diagram of user equipment according toanother embodiment of the present disclosure;

FIG. 6 is a method flowchart of a monitoring report generation methodaccording to an embodiment of the present disclosure;

FIG. 7A is a method flowchart of a monitoring report generation methodaccording to another embodiment of the present disclosure; and

FIG. 7B is a schematic diagram of several discovery time domainsaccording to some embodiments of the present disclosure.

DESCRIPTION OF EMBODIMENTS

To make the objectives, technical solutions, and advantages of thepresent disclosure clearer, the following further describes theembodiments of the present disclosure in detail with reference to theaccompanying drawings.

Referring to FIG. 1, FIG. 1 is a schematic diagram of an implementationenvironment involved in a monitoring report generation method accordingto some embodiments of the present disclosure. The implementationenvironment may be a device-to-device D2D communications system, and theD2D communications system may include user equipment 120 and a basestation 140.

The base station 140 may allocate a resource to the user equipment 120,and may deliver data to the user equipment 120 (that is, data isdelivered to the user equipment 120 through a path indicated by x2 inthe figure). The user equipment 120 may be D2D user equipment, that is,communication may be directly performed between user equipments 120 byusing the resource allocated by the base station 140 (that is,communication is directly performed through a path indicated by x1 inthe figure).

Referring to FIG. 2, FIG. 2 is a schematic structural diagram of amonitoring report generation apparatus according to an embodiment of thepresent disclosure. The monitoring report generation apparatus is mainlyapplied to the user equipment 120 in the implementation environmentshown in FIG. 1 as an example for description. The monitoring reportgeneration apparatus may include a receiving module 202, a monitoringmodule 204, a determining module 206, a first generation module 208, anda sending module 210.

The receiving module 202 may be configured to receive a monitoringparameter broadcast by a base station, where the monitoring parameterincludes an energy threshold corresponding to a busy resource, areporting condition corresponding to the busy resource, an energythreshold corresponding to an idle resource, a reporting conditioncorresponding to the idle resource, a resource pool, and a discoverytime domain used to indicate that the user equipment performsmonitoring.

The monitoring module 204 may be configured to monitor energy of atleast one discovery resource in the resource pool within at least onediscovery time domain.

The determining module 206 may be configured to determine a busyresource and an idle resource in the at least one discovery time domainaccording to the energy of the at least one discovery resource, theenergy threshold corresponding to the busy resource, and the energythreshold corresponding to the idle resource.

The first generation module 208 may be configured to generate amonitoring report when a detection result in the at least one discoverytime domain is that a proportion of the busy resource in a predeterminedquantity of consecutive discovery time domains meets the reportingcondition corresponding to the busy resource, or when a proportion ofthe idle resource in consecutive discovery time domains in the at leastone discovery time domain meets the reporting condition corresponding tothe idle resource, where the monitoring report includes the proportionof the busy resource in the consecutive discovery time domains or theproportion of the idle resource in the consecutive discovery timedomains.

The sending module 210 is configured to send the monitoring report tothe base station.

In conclusion, the monitoring report generation apparatus provided inthis embodiment of the present disclosure monitors energy of eachdiscovery resource in a resource pool within a discovery time domain;and determines, according to the energy of each discovery resource,whether a proportion of a busy resource or an idle resource in thediscovery time domain meets a corresponding reporting condition,generates a monitoring report by using the proportion of the busyresource or the idle resource when the reporting condition is met, andsends the monitoring report to a base station. This resolves a problemin the related technology that: because D2D user equipment cannotaccurately obtain a quantity of resource collision times in a cell, thebase station cannot accurately learn a resource status in the cell.Because the D2D user equipment may accurately monitor energy of adiscovery resource, and determine a monitoring report according to theenergy of the discovery resource, the monitoring report reported to thebase station may relatively accurately reflect the resource status inthe cell, and it is ensured that the base station can accurately learnthe resource status in the cell.

Referring to FIG. 3, FIG. 3 is a schematic structural diagram of amonitoring report generation apparatus according to an embodiment of thepresent disclosure. The monitoring report generation apparatus is mainlyapplied to the user equipment 120 in the implementation environmentshown in FIG. 1 as an example for description. The monitoring reportgeneration apparatus may include a receiving module 302, a monitoringmodule 304, a determining module 306, a first generation module 308, anda sending module 310.

The receiving module 302 may be configured to receive a monitoringparameter broadcast by a base station, where the monitoring parameterincludes an energy threshold corresponding to a busy resource, areporting condition corresponding to the busy resource, an energythreshold corresponding to an idle resource, a reporting conditioncorresponding to the idle resource, a resource pool, and a discoverytime domain used to indicate that the user equipment performsmonitoring.

The monitoring module 304 may be configured to monitor energy of atleast one discovery resource in the resource pool within at least onediscovery time domain.

The determining module 306 may be configured to determine a busyresource and an idle resource in the at least one discovery time domainaccording to the energy of the at least one discovery resource, theenergy threshold corresponding to the busy resource, and the energythreshold corresponding to the idle resource.

The first generation module 308 may be configured to generate amonitoring report when a proportion of the busy resource in apredetermined quantity of consecutive discovery time domains in the atleast one discovery time domain meets the reporting conditioncorresponding to the busy resource, or when a proportion of the idleresource in consecutive discovery time domains in the at least onediscovery time domain meets the reporting condition corresponding to theidle resource, where the monitoring report includes the proportion ofthe busy resource in the consecutive discovery time domains or theproportion of the idle resource in the consecutive discovery timedomains.

The sending module 310 may be configured to send the monitoring reportto the base station.

In a first possible implementation manner of the embodiment shown inFIG. 3, the busy resource is a discovery resource whose energy isgreater than the energy threshold corresponding to the busy resource,and the idle resource is a discovery resource whose energy is less thanthe energy threshold corresponding to the idle resource.

In a second possible implementation manner of the embodiment shown inFIG. 3, the monitoring report generation apparatus may further include afirst calculation module 312.

The first calculation module 312 may be configured to calculate aproportion of the busy resource in each discovery time domain.

In a third possible implementation manner of the embodiment shown inFIG. 3, the first calculation module 312 may include a first countingunit 312 a and a first calculation unit 312 b; or a second counting unit312 c, a second calculation unit 312 d, and a third calculation unit 312e.

The first counting unit 312 a may be configured to count a quantity ofthe busy resource and a quantity of the idle resource in each discoverytime domain; the first calculation unit 312 b may be configured todivide the quantity of the busy resource by a sum of the quantity of thebusy resource and the quantity of the idle resource, to obtain theproportion of the busy resource in each discovery time domain; or

the second counting unit 312 c may be configured to count a quantity ofthe busy resource and a quantity of the idle resource in each subframeof each discovery time domain; the second calculation unit 312 d may beconfigured to: for each subframe, divide the quantity of the busyresource in each subframe by a sum of the quantity of the busy resourceand the quantity of the idle resource, to obtain a probability of thebusy resource in each subframe; and the third calculation unit 312 e maybe configured to calculate a weighted average value of the probabilityof the busy resource in each subframe of each discovery time domain, toobtain the probability of the busy resource in each discovery timedomain.

In a fourth possible implementation manner of the embodiment shown inFIG. 3, the monitoring report generation apparatus module may furtherinclude a second calculation module 314.

The second calculation module 314 may be configured to calculate aproportion of the idle resource in each discovery time domain.

In a fifth possible implementation manner of the embodiment shown inFIG. 3, the second calculation module 314 includes a third counting unit314 a and a fourth calculation unit 314 b; or a fourth counting unit 314c, a fifth calculation unit 314 d, and a sixth calculation unit 314 e.

The third counting unit 314 a is configured to count a quantity of thebusy resource and a quantity of the idle resource in each discovery timedomain; the fourth calculation unit 314 b is configured to divide thequantity of the idle resource by a sum of the quantity of the busyresource and the quantity of the idle resource, to obtain the proportionof the idle resource in each discovery time domain; or

the fourth counting unit 314 c is configured to count a quantity of thebusy resource and a quantity of the idle resource in each subframe ofeach discovery time domain; the fifth calculation unit 314 d isconfigured to divide the quantity of the idle resource in each subframeby a sum of the quantity of the busy resource and the quantity of theidle resource, to obtain a proportion of the idle resource in eachsubframe; the sixth calculation unit 314 e is configured to calculate aweighted average value of the proportion of the idle resource in eachsubframe of each discovery time domain, to obtain the proportion of theidle resource in each discovery time domain.

In a sixth possible implementation manner of the embodiment shown inFIG. 3,

when the predetermined quantity is 1, the monitoring report includes theproportion of the busy resource in the discovery time domain or theproportion of the idle resource in the discovery time domain; or

when the predetermined quantity is greater than 1, the monitoring reportincludes a weighted average value of the proportion of the busy resourcein the predetermined quantity of consecutive discovery time domains or aweighted average value of the proportion of the idle resource in thepredetermined quantity of consecutive discovery time domains.

In a seventh possible implementation manner of the embodiment shown inFIG. 3, the monitoring report further includes a quantity of successtimes and a quantity of failure times, the quantity of success times isobtained by counting a quantity of times of existence of idle resourceselection in each discovery time domain, and the quantity of failuretimes is obtained by counting a quantity of times of nonexistence ofidle resource selection in each discovery time domain.

In an eighth possible implementation manner of the embodiment shown inFIG. 3, the monitoring parameter further includes a predeterminedprobability threshold, and the monitoring report generation apparatusmay further include a second generation module 316.

The second generation module 316 may be configured to generate a randomnumber.

The sending module 310 may be further configured to: when the randomnumber is greater than the predetermined probability threshold, send themonitoring report to the base station.

In conclusion, the monitoring report generation apparatus provided inthis embodiment of the present disclosure monitors energy of eachdiscovery resource in a resource pool within each discovery time domain;and determines, according to the energy of each discovery resource,whether a proportion of a busy resource or an idle resource in eachdiscovery time domain meets a corresponding reporting condition,generates a monitoring report by using the proportion of the busyresource or the idle resource when the reporting condition is met, andsends the monitoring report to a base station. This resolves a problemin the related technology that: because D2D user equipment cannotaccurately obtain a quantity of resource collision times in a cell, thebase station cannot accurately learn a resource status in the cell.Because the D2D user equipment may accurately monitor energy of adiscovery resource, and determine a monitoring report according to theenergy of the discovery resource, the monitoring report reported to thebase station may relatively accurately reflect the resource status inthe cell, and it is ensured that the base station can accurately learnthe resource status in the cell.

Referring to FIG. 4, FIG. 4 is a schematic structural diagram of userequipment according to an embodiment of the present disclosure. The userequipment is mainly applied to the user equipment 120 in theimplementation environment shown in FIG. 1 as an example fordescription. The user equipment may include a receiver 402, a processor404, and a transmitter 406.

The receiver 402 may be configured to receive a monitoring parameterbroadcast by a base station, where the monitoring parameter includes anenergy threshold corresponding to a busy resource, a reporting conditioncorresponding to the busy resource, an energy threshold corresponding toan idle resource, a reporting condition corresponding to the idleresource, a resource pool, and a discovery time domain used to indicatethat the user equipment performs monitoring.

The processor 404 may be configured to monitor energy of at least onediscovery resource in the resource pool within at least one discoverytime domain.

The processor 404 may be further configured to determine a busy resourceand an idle resource in the at least one discovery time domain accordingto the energy of the at least one discovery resource, the energythreshold corresponding to the busy resource, and the energy thresholdcorresponding to the idle resource.

The processor 404 may be further configured to generate a monitoringreport when a proportion of the busy resource in a predeterminedquantity of consecutive discovery time domains in the at least onediscovery time domain meets the reporting condition corresponding to thebusy resource, or when a proportion of the idle resource in consecutivediscovery time domains in the at least one discovery time domain meetsthe reporting condition corresponding to the idle resource, where themonitoring report includes the proportion of the busy resource in theconsecutive discovery time domains or the proportion of the idleresource in the consecutive discovery time domains.

The transmitter 406 may be configured to send the monitoring report tothe base station.

In conclusion, the user equipment provided in this embodiment of thepresent disclosure monitors energy of each discovery resource in aresource pool within each discovery time domain; and determines,according to the energy of each discovery resource, whether a proportionof a busy resource or an idle resource in each discovery time domainmeets a corresponding reporting condition, generates a monitoring reportby using the proportion of the busy resource or the idle resource whenthe reporting condition is met, and sends the monitoring report to abase station. This resolves a problem in the related technology that:because D2D user equipment cannot accurately obtain a quantity ofresource collision times in a cell, the base station cannot accuratelylearn a resource status in the cell. Because the D2D user equipment mayaccurately monitor energy of a discovery resource, and determine amonitoring report according to the energy of the discovery resource, themonitoring report reported to the base station may relatively accuratelyreflect the resource status in the cell, and it is ensured that the basestation can accurately learn the resource status in the cell.

Referring to FIG. 5, FIG. 5 is a schematic structural diagram of userequipment according to another embodiment of the present disclosure. Theuser equipment is mainly applied to the user equipment 120 in theimplementation environment shown in FIG. 1 as an example fordescription. The user equipment may include a receiver 502, a processor504, a transmitter 506, and a memory 508, where the processor 504 isseparately coupled to the receiver 502, the transmitter 506, and thememory 508, the memory 508 stores at least one type of computerapplication program, and the memory 508 may implement related functionsaccording to these computer application programs.

The receiver 502 may be configured to receive a monitoring parameterbroadcast by a base station, where the monitoring parameter includes anenergy threshold corresponding to a busy resource, a reporting conditioncorresponding to the busy resource, an energy threshold corresponding toan idle resource, a reporting condition corresponding to the idleresource, a resource pool, and a discovery time domain used to indicatethat the user equipment performs monitoring.

The processor 504 may be configured to monitor energy of at least onediscovery resource in the resource pool within at least one discoverytime domain.

The processor 504 may be further configured to determine a busy resourceand an idle resource in the at least one discovery time domain accordingto the energy of the at least one discovery resource, the energythreshold corresponding to the busy resource, and the energy thresholdcorresponding to the idle resource.

The processor 504 may be further configured to generate a monitoringreport when a proportion of the busy resource in a predeterminedquantity of consecutive discovery time domains in the at least onediscovery time domain meets the reporting condition corresponding to thebusy resource, or when a proportion of the idle resource in consecutivediscovery time domains in the at least one discovery time domain meetsthe reporting condition corresponding to the idle resource, where themonitoring report includes the proportion of the busy resource in theconsecutive discovery time domains or the proportion of the idleresource in the consecutive discovery time domains.

The transmitter 506 may be configured to send the monitoring report tothe base station.

In a first possible implementation manner of the embodiment shown inFIG. 5, the busy resource is a discovery resource whose energy isgreater than the energy threshold corresponding to the busy resource,and the idle resource is a discovery resource whose energy is less thanthe energy threshold corresponding to the idle resource.

In a second possible implementation manner of the embodiment shown inFIG. 5, the processor 504 is further configured to calculate aproportion of the busy resource in each discovery time domain.

In a third possible implementation manner of the embodiment shown inFIG. 5, the processor 504 may be further configured to count a quantityof the busy resource and a quantity of the idle resource in eachdiscovery time domain; and the processor 504 may be further configuredto divide the quantity of the busy resource by a sum of the quantity ofthe busy resource and the quantity of the idle resource, to obtain theproportion of the busy resource in each discovery time domain; or

the processor 504 may be further configured to count a quantity of thebusy resource and a quantity of the idle resource in each subframe ofeach discovery time domain; the processor 504 may be further configuredto: for each subframe, divide the quantity of the busy resource in eachsubframe by a sum of the quantity of the busy resource and the quantityof the idle resource, to obtain a proportion of the busy resource ineach subframe; and the processor 504 may be further configured tocalculate a weighted average value of the proportion of the busyresource in each subframe of each discovery time domain, to obtain theproportion of the busy resource in each discovery time domain.

In a fourth possible implementation manner of the embodiment shown inFIG. 5, the processor 504 may be further configured to calculate aproportion of the idle resource in each discovery time domain.

In a fifth possible implementation manner of the embodiment shown inFIG. 5, the processor 504 may be further configured to count a quantityof the busy resource and a quantity of the idle resource in eachdiscovery time domain; and the processor 504 may be further configuredto divide the quantity of the idle resource by a sum of the quantity ofthe busy resource and the quantity of the idle resource, to obtain theproportion of the idle resource in each discovery time domain; or

the processor 504 may be further configured to count a quantity of thebusy resource and a quantity of the idle resource in each subframe ofeach discovery time domain; the processor 504 may be further configuredto divide the quantity of the idle resource in each subframe by a sum ofthe quantity of the busy resource and the quantity of the idle resource,to obtain a proportion of the idle resource in each subframe; and theprocessor 504 may be further configured to calculate a weighted averagevalue of the proportion of the idle resource in each subframe of eachdiscovery time domain, to obtain the proportion of the idle resource ineach discovery time domain.

In a sixth possible implementation manner of the embodiment shown inFIG. 5,

when the predetermined quantity is 1, the monitoring report includes theproportion of the busy resource in the discovery time domain or theproportion of the busy resource in the discovery time domain; or

when the predetermined quantity is greater than 1, the monitoring reportincludes a weighted average value of the proportion of the busy resourcein the predetermined quantity of consecutive discovery time domains or aweighted average value of the proportion of the idle resource in thepredetermined quantity of consecutive discovery time domains.

In a seventh possible implementation manner of the embodiment shown inFIG. 5, the monitoring report further includes a quantity of successtimes and a quantity of failure times, the quantity of success times isobtained by counting a quantity of times of existence of idle resourceselection in each discovery time domain, and the quantity of failuretimes is obtained by counting a quantity of times of nonexistence ofidle resource selection in each discovery time domain.

In an eighth possible implementation manner of the embodiment shown inFIG. 5, the monitoring parameter further includes a predeterminedprobability threshold, the processor 504 may be further configured togenerate a random number.

The transmitter 506 may be further configured to: when the random numberis greater than the predetermined probability threshold, send themonitoring report to the base station.

In conclusion, the user equipment provided in this embodiment of thepresent disclosure monitors energy of each discovery resource in aresource pool within each discovery time domain; and determines,according to the energy of each discovery resource, whether a proportionof a busy resource or an idle resource in each discovery time domainmeets a corresponding reporting condition, generates a monitoring reportby using the proportion of the busy resource or the idle resource whenthe reporting condition is met, and sends the monitoring report to abase station. This resolves a problem in the related technology that:because D2D user equipment cannot accurately obtain a quantity ofresource collision times in a cell, the base station cannot accuratelylearn a resource status in the cell. Because the D2D user equipment mayaccurately monitor energy of a discovery resource, and determine amonitoring report according to the energy of the discovery resource, themonitoring report reported to the base station may relatively accuratelyreflect the resource status in the cell, and it is ensured that the basestation can accurately learn the resource status in the cell.

It should be noted that the division of the foregoing function modulesis merely used as an example for description when the monitoring reportgeneration apparatus and the user equipment that are provided in theforegoing embodiments generate a monitoring report. In practicalapplication, the foregoing functions may be allocated to differentfunction modules according to a requirement, that is, an internalstructure of the user equipment is divided into different functionmodules for completing all or a part of functions described above. Inaddition, the monitoring report generation apparatus and the userequipment that are provided in the foregoing embodiments pertain to thesame concept as that of the following monitoring report generationmethod embodiment; for a specific implementation process of themonitoring report generation apparatus and the user equipment, referencemay be made to the method embodiment, and details are not describedherein again.

Referring to FIG. 6, FIG. 6 is a method flowchart of a monitoring reportgeneration method according to an embodiment of the present disclosure.The monitoring report generation method is mainly applied to the userequipment 120 in the implementation environment shown in FIG. 1 as anexample for description. The monitoring report generation method mayinclude the following steps:

601. Receive a monitoring parameter broadcast by a base station, wherethe monitoring parameter includes an energy threshold corresponding to abusy resource, a reporting condition corresponding to the busy resource,an energy threshold corresponding to an idle resource, a reportingcondition corresponding to the idle resource, a resource pool, and adiscovery time domain used to indicate that the user equipment performsmonitoring.

602. Monitor energy of at least one discovery resource in the resourcepool within at least one discovery time domain.

603. Determine a busy resource and an idle resource in the at least onediscovery time domain according to the energy of the at least onediscovery resource, the energy threshold corresponding to the busyresource, and the energy threshold corresponding to the idle resource.

604. Generate a monitoring report when a proportion of the busy resourcein consecutive discovery time domains in the at least one discovery timedomain meets the reporting condition corresponding to the busy resource,or when a proportion of the idle resource in consecutive discovery timedomains in the at least one discovery time domain meets the reportingcondition corresponding to the idle resource, and send the monitoringreport to the base station, where the monitoring report includes theproportion of the busy resource in the consecutive discovery timedomains or the proportion of the idle resource in the consecutivediscovery time domains.

In conclusion, according to the monitoring report generation methodprovided in this embodiment of the present disclosure, energy of eachdiscovery resource in a resource pool is monitored within a discoverytime domain; and it is determined, according to the energy of eachdiscovery resource, whether a proportion of a busy resource or an idleresource in the discovery time domain meets a reporting condition, amonitoring report is generated by using the proportion of the busyresource or the idle resource when the reporting condition is met, andthe monitoring report is sent to a base station. This resolves a problemin the related technology that: because D2D user equipment cannotaccurately obtain a quantity of resource collision times in a cell, thebase station cannot accurately learn a resource status in the cell.Because the D2D user equipment may accurately monitor energy of adiscovery resource, and determine a monitoring report according to theenergy of the discovery resource, the monitoring report reported to thebase station may relatively accurately reflect the resource status inthe cell, and it is ensured that the base station can accurately learnthe resource status in the cell.

In an application scenario, when each user equipment monitors adiscovery resource in a resource pool, if a proportion of a busyresource (or a proportion of a idle resource) monitored within apredetermined quantity of consecutive discovery time domains reaches athreshold that allows reporting, a monitoring report may be generated,and the monitoring report is reported to a base station. For a specificimplementation process, reference may be made to the followingdescription about FIG. 7A.

Referring to FIG. 7A, FIG. 7A is a method flowchart of a monitoringreport generation method according to another embodiment of the presentdisclosure. The monitoring report generation method is mainly applied tothe user equipment 120 in the implementation environment shown in FIG. 1as an example for description. The monitoring report generation methodmay include the following steps:

701. Receive a monitoring parameter broadcast by a base station, wherethe monitoring parameter includes an energy threshold corresponding to abusy resource, a reporting condition corresponding to the busy resource,an energy threshold corresponding to an idle resource, a reportingcondition corresponding to the idle resource, a resource pool, and adiscovery time domain used to indicate that the user equipment performsmonitoring.

In practical application, the base station may send the monitoringparameter to the user equipment by means of broadcast, where themonitoring parameter may include the energy threshold corresponding tothe busy resource, the reporting condition, the energy thresholdcorresponding to the idle resource, the reporting condition, a parameterused for defining the resource pool, a parameter used for defining thediscovery time domain, and the like. The user equipment may receive themonitoring parameter sent by the base station by means of broadcast.

Generally, the resource pool may be a set of frequency domains. Forexample, the parameter used for defining the resource pool may include astart resource block location and an end resource block location; or adefined start resource block location and a quantity of resource blocks.

The parameter used for defining the discovery time domain may include aframe number, a start subframe number, and an end subframe number; ormay include a first parameter M and a second parameter N, that is, itindicates that N consecutive subframes in every M frames are a discoverytime domain defined for discovering a service. Generally, the Nconsecutive subframes have a same time domain location in every Mframes. For example, the N consecutive subframes are a subframe setformed by the i^(th) subframe to the (i+N−1)^(th) subframe.

Referring to FIG. 7B, FIG. 7B shows a schematic diagram of severaldiscovery time domains according to some embodiments of the presentdisclosure. If the M frames are corresponding to 100 ms, and the Nconsecutive subframes are corresponding to 10 ms, 10 ms subsequent toeach interval of 90 ms may be used as a discovery time domain. Herein,each discovery time domain may be set in a start location of the Mframes. Apparently, alternatively, the discovery time domain may be setin another location in the M frames.

When the base station broadcasts the discovery time domain, the userequipment may monitor a discovery resource in the resource pool in thesediscovery time domains.

702. Monitor energy of at least one discovery resource in the resourcepool within at least one discovery time domain.

After learning the resource pool and the discovery time domain accordingto the monitoring parameter, the user equipment may monitor the energyof the at least one discovery resource in the resource pool within theat least one discovery time domain.

703. When energy of a discovery resource is greater than the energythreshold corresponding to the busy resource, determine the discoveryresource as a busy resource.

For a discovery resource, when the user equipment finds, by means ofmonitoring, that the energy of the discovery resource is greater thanthe energy threshold corresponding to the busy resource, the discoveryresource is determined as a busy resource.

704. When energy of a discovery resource is less than the energythreshold corresponding to the idle resource, determine the discoveryresource as an idle resource.

For a discovery resource, when the user equipment finds, by means ofmonitoring, that the energy of the discovery resource is less than theenergy threshold corresponding to the idle resource, the discoveryresource is determined as an idle resource.

705. Calculate a proportion of the busy resource in each discovery timedomain.

A predetermined quantity may be one parameter added by the base stationinto the monitoring parameter that is sent by means of broadcast, andthe base station may set the predetermined quantity according to anactual situation.

The predetermined quantity of consecutive discovery time domains referto all discovery time domains in consecutive M frames of thepredetermined quantity. When the predetermined quantity is 3, discoverytime domain 1, discovery time domain 2, and discovery time domain 3 inFIG. 7B may be determined as the predetermined quantity of consecutivediscovery time domains; and discovery time domain 2, discovery timedomain 3, and discovery time domain 4 in FIG. 7B may also be determinedas the predetermined quantity of consecutive discovery time domains.Apparently, alternatively, a value of the predetermined quantity hereinmay be 1, that is, only a proportion of the busy resource in onediscovery time domain is calculated.

In practical application, the calculating a proportion of the busyresource in each discovery time domain may include the following twomanners:

In a first manner, a quantity of the busy resource and a quantity of theidle resource in each discovery time domain are counted, and thequantity of the busy resource is divided by a sum of the quantity of thebusy resource and the quantity of the idle resource, to obtain theproportion of the busy resource in each discovery time domain.

For example, a formula for calculating the proportion R_(m) of the busyresource in the discovery time domain may be as follows:R _(m) =S _(m)/(S _(m) +S _(x)), where

S_(m) is a quantity of the busy resource counted in a discovery timedomain, and S_(x) is a quantity of the idle resource counted in adiscovery time domain.

In a second manner, a quantity of the busy resource and a quantity ofthe idle resource in each subframe of each discovery time domain may becounted; the quantity of the busy resource in each subframe is dividedby a sum of the quantity of the busy resource and the quantity of theidle resource, to obtain a proportion of the busy resource in eachsubframe; and a weighted average value of the proportion of the busyresource in each subframe in a same discovery time domain is calculated,to obtain the proportion of the busy resource in each discovery timedomain.

That is, in the second manner, alternatively, when a proportion of thebusy resource in a discovery time domain is obtained, the proportion ofthe busy resource in the discovery time domain may be obtained bycounting the proportion of the busy resource in each subframe in thediscovery time domain, and then performing weighted averaging on anobtained proportion corresponding to each subframe.

For example, a formula for calculating the proportion R_(m) of the busyresource in one discovery time domain may be as follows:

${R_{m} = \frac{\sum\limits_{i = 1}^{N}\;{\alpha_{im} \cdot R_{im}}}{N}},{{{where}\mspace{14mu} R_{i}} = \frac{S_{im}}{S_{im} + S_{ix}}},$and

R_(im) is a proportion of the busy resource in the i^(th) subframe,α_(im) is a weight, in the discovery time domain, corresponding to aproportion of the busy resource in the i^(th) subframe, N is a quantityof subframes in the discovery time domain, S_(im) is a quantity of thebusy resource in the i^(th) subframe in the discovery time domain, andS_(ix) is a quantity of the idle resource in the i^(th) subframe in thediscovery time domain.

Certainly, a process of calculating the proportion of the busy resourcein a discovery time domain may be implemented by using another method,which is not described in detail again.

In practical application, when the value of the predetermined quantityis 1, the proportion of the busy resource in one discovery time domainmay be obtained according to the foregoing process; or when thepredetermined quantity is greater than 1, the proportion of the busyresource in the discovery time domains of the predetermined quantity maybe obtained according to the foregoing process.

In a case in which the proportion of the busy resource is not large, theproportion of the busy resource generally does not affect resourcescheduling. Therefore, to avoid occurrence of a resource congestionstatus caused by reporting by each user equipment in any case, filteringis generally performed, that is, step 706 is executed.

706. Generate a monitoring report when a proportion of the busy resourcein a predetermined quantity of consecutive discovery time domains in theat least one discovery time domain meets the reporting conditioncorresponding to the busy resource.

The monitoring report includes the proportion of the busy resource inthe consecutive discovery time domains.

In a possible implementation manner, that the proportion of the busyresource in the predetermined quantity of consecutive discovery timedomains in the at least one discovery time domain meets the reportingcondition corresponding to the busy resource may be as follows: theproportion of the busy resource in the predetermined quantity ofconsecutive discovery time domains in the at least one discovery timedomain is greater than a proportion threshold corresponding to the busyresource.

In a scenario, the user equipment may generate the monitoring reportwhen it is determined, in one discovery time domain, that the proportionof the busy resource is greater than the proportion thresholdcorresponding to the busy resource, where the monitoring report includesthe proportion of the busy resource in the discovery time domain. Thatis, when the value of the predetermined quantity is 1, that is, for onediscovery time domain, when the proportion of the busy resource in thediscovery time domain is greater than the proportion thresholdcorresponding to the busy resource, the proportion of the busy resourcein the discovery time domain is used as a part of the monitoring report.

Because monitoring in one discovery time domain cannot accuratelyreflect a current resource status, to improve reliability of reporting,and avoid resource congestion caused by reporting by the user equipmentin each discovery time domain, monitoring results of monitoring inmultiple consecutive discovery time domains may be counted. Therefore,in another scenario, monitoring results in multiple consecutivediscovery time domains may be counted, and when a result of the countingmeets the reporting condition, a monitoring report may be generated byusing the result of the counting. That is, when the value of thepredetermined quantity is greater than 1, that is, for the predeterminedquantity of consecutive discovery time domains, when the proportion ofthe busy resource in the predetermined quantity of consecutive discoverytime domains is greater than the proportion threshold corresponding tothe busy resource, a weighted average value of the proportion of thebusy resource in the predetermined quantity of consecutive discoverytime domains, and the weighted average value of the proportion of thebusy resource in the predetermined quantity of consecutive discoverytime domains is determined as a part of the monitoring report.

For example, a formula for calculating the weighted average valueR_(jqm) of the proportion of the busy resource in the predeterminedquantity of consecutive discovery time domains is as follows:

${R_{jqm} = {\sum\limits_{j = 1}^{P}\;{\beta_{jm}R_{jm}}}},$where

P is a value of a predetermined quantity, R_(jm) is a proportion of thebusy resource in the j^(th) discovery time domain, and β_(jm) is aweight corresponding to a proportion of the busy resource in the j^(th)discovery time domain.

Apparently, when a weight of the weighted average value is 1, anarithmetic average value of the proportion of the busy resource in thepredetermined quantity of consecutive discovery time domains may befurther calculated, and the arithmetic average value is determined as apart of the monitoring report.

707. Calculate a proportion of the idle resource in each discovery timedomain.

A predetermined quantity may be one parameter added by the base stationinto the monitoring parameter that is sent by means of broadcast, andthe base station may set the predetermined quantity according to anactual situation.

The predetermined quantity of consecutive discovery time domains referto all discovery time domains in consecutive M frames of thepredetermined quantity. When the predetermined quantity is 3, discoverytime domain 1, discovery time domain 2, and discovery time domain 3 inFIG. 7B may be determined as the predetermined quantity of consecutivediscovery time domains; and discovery time domain 2, discovery timedomain 3, and discovery time domain 4 in FIG. 7B may also be determinedas the predetermined quantity of consecutive discovery time domains.Apparently, alternatively, a value of the predetermined quantity hereinmay be 1, that is, only a proportion of the idle resource in onediscovery time domain is calculated.

In practical application, the calculating a proportion of the idleresource in each discovery time domain may include the following twomanners:

In a first manner, a quantity of the busy resource and a quantity of theidle resource in each discovery time domain are counted, and thequantity of the idle resource is divided by a sum of the quantity of thebusy resource and the quantity of the idle resource, to obtain theproportion of the idle resource in each discovery time domain.

For example, a formula for calculating the proportion R_(x) of the idleresource in the discovery time domain may be as follows:R _(x) =S _(x)/(S _(m) +S _(x)), where

S_(m) is a quantity of the busy resource counted in a discovery timedomain, and S_(x) is a quantity of the idle resource counted in adiscovery time domain.

In a second manner, a quantity of the busy resource and a quantity ofthe idle resource in each subframe of each discovery time domain may becounted; the quantity of the idle resource in each subframe is dividedby a sum of the quantity of the busy resource and the quantity of theidle resource, to obtain a proportion of the idle resource in eachsubframe; and a weighted average value of the proportion of the idleresource in each subframe in a same discovery time domain is calculated,to obtain the proportion of the idle resource in each discovery timedomain.

That is, in the second manner, when a proportion of the idle resource ina discovery time domain is obtained, the proportion of the idle resourcein the discovery time domain may be obtained by counting the proportionof the idle resource in each subframe in the discovery time domain, andthen performing weighted averaging on an obtained proportioncorresponding to each subframe.

For example, a formula for calculating the proportion R_(x) of the idleresource in one discovery time domain may be as follows:

${R_{x} = \frac{\sum\limits_{i = 1}^{N}\;{\alpha_{ix} \cdot R_{ix}}}{N}},{{{where}\mspace{14mu} R_{i}} = \frac{S_{im}}{S_{im} + S_{ix}}},$and

R_(ix) is a proportion of the idle resource in the i^(th) subframe,α_(ix) is a weight, in the discovery time domain, corresponding to aproportion of the idle resource in the i^(th) subframe, N is a quantityof subframes in the discovery time domain, S_(im) is a quantity of thebusy resource in the i^(th) subframe in the discovery time domain, andS_(ix) is a quantity of the idle resource in the i^(th) subframe in thediscovery time domain.

Certainly, a process of calculating the proportion of the idle resourcein a discovery time domain may be implemented by using another method,which is not described in detail again.

In practical application, when the value of the predetermined quantityis 1, the proportion of the idle resource in one discovery time domainmay be obtained according to the foregoing process; or when thepredetermined quantity is greater than 1, the proportion of the idleresource in the discovery time domains of the predetermined quantity maybe obtained according to the foregoing process.

In a case in which the proportion of the idle resource is not large, theproportion of the idle resource generally does not affect resourcescheduling. Therefore, to avoid occurrence of a resource congestionstatus caused by reporting by each user equipment in any case, filteringis generally performed, that is, step 708 is executed.

708. Generate a monitoring report when a proportion of the idle resourcein a predetermined quantity of consecutive discovery time domains in theat least one discovery time domain meets the reporting conditioncorresponding to the idle resource.

The monitoring report includes the proportion of the idle resource inthe consecutive discovery time domains.

In a possible implementation manner, that the proportion of the idleresource in the predetermined quantity of consecutive discovery timedomains in the at least one discovery time domain meets the reportingcondition corresponding to the idle resource may be as follows: theproportion of the idle resource in the predetermined quantity ofconsecutive discovery time domains in the at least one discovery timedomain is greater than a proportion threshold corresponding to the idleresource.

In a scenario, the user equipment may generate the monitoring reportwhen it is determined, in one discovery time domain, that the proportionof the idle resource is greater than the proportion thresholdcorresponding to the idle resource, where the monitoring report includesthe proportion of the idle resource in the discovery time domain. Thatis, when the value of the predetermined quantity is 1, that is, for onediscovery time domain, when the proportion of the idle resource in thediscovery time domain is greater than the proportion thresholdcorresponding to the idle resource, the proportion of the idle resourcein the discovery time domain is used as a part of the monitoring report.

Because monitoring in one discovery time domain cannot accuratelyreflect a current resource status, to improve reliability of reporting,and avoid resource congestion caused by reporting by the user equipmentin each discovery time domain, monitoring results of monitoring inmultiple consecutive discovery time domains may be counted. Therefore,in another scenario, monitoring results in multiple consecutivediscovery time domains may be counted, and when a result of the countingmeets the reporting condition, a monitoring report may be generated byusing the result of the counting. That is, when the value of thepredetermined quantity is greater than 1, that is, for the predeterminedquantity of consecutive discovery time domains, when the proportion ofthe idle resource in the predetermined quantity of consecutive discoverytime domains is greater than the proportion threshold corresponding tothe idle resource, a weighted average value of the proportion of theidle resource in the predetermined quantity of consecutive discoverytime domains, and the weighted average value of the proportion of theidle resource in the predetermined quantity of consecutive discoverytime domains is determined as a part of the monitoring report.

For example, a formula for calculating the weighted average valueR_(jqx) of the proportion of the idle resource in the predeterminedquantity of consecutive discovery time domains is as follows:

${R_{jqx} = {\sum\limits_{j = 1}^{P}\;{\beta_{jx}R_{jx}}}},$where

P is a value of a predetermined quantity, R_(jx) is a proportion of theidle resource in the j^(th) discovery time domain, and β_(jx) is aweight corresponding to a proportion of the idle resource in the j^(th)discovery time domain.

Apparently, when a weight of the weighted average value is 1, anarithmetic average value of the proportion of the idle resource in thepredetermined quantity of consecutive discovery time domains may befurther calculated, and the arithmetic average value is determined as apart of the monitoring report.

709. Generate a random number.

In the predetermined quantity of consecutive discovery time domains,possibly, the proportion of the busy resource or the proportion of theidle resource that is monitored by user equipment of a relatively largequantity may meet a probability reporting condition. Therefore, allthese user equipments have reporting permission to perform reporting onthe base station. However, in practical application, a relatively largequantity of user equipment may exist in a cell. In the consecutivediscovery time domains of the predetermined quantity, a relatively largequantity of user equipment that has reporting permission may also exist.For example, 100 user equipments that have reporting permission mayexist. In this case, if all these user equipments perform reporting onthe base station, a relatively large quantity of resources may beoccupied, and the base station may generally learn a current resourcestatus in the cell according to only a result of reporting by 20 userequipments in the 100 user equipments. Therefore, for user equipmentthat has reporting permission, when reporting is performed, a randomnumber may be first generated, and a quantity of user equipment that canperform actual reporting is limited to a value or to be less than avalue by means of a limitation of the random number.

710. When the random number is greater than a predetermined probabilitythreshold, send the monitoring report to the base station.

The predetermined probability threshold may be one parameter added bythe base station into the monitoring parameter that is sent by means ofbroadcast, that is, the monitoring parameter may further include thepredetermined probability threshold. The base station may set a value ofthe random number according to a quantity of user equipment and aresource status in the cell.

The monitoring report may be sent to the base station only when therandom number generated by the user equipment is greater than thepredetermined probability threshold, and the monitoring report is notsent to the base station when the random number generated by the userequipment is less than the predetermined probability threshold. In thisway, for a relatively large quantity of user equipment in the cell,because of a limitation of the random number, only a part of userequipment that has reporting permission may actually send the monitoringreport to the base station, so that occupation on resources may beeffectively reduced.

It should be additionally noted that, in practical application, toensure that scheduling of a resource in the cell may be relativelyaccurately implemented after the base station learns the monitoringreport, when the monitoring report is generated, the user equipment mayfurther add other monitored related information to the monitoringreport, so that the base station uses the other monitored relatedinformation as reference when scheduling of a resource is implemented.

In a possible implementation manner, that a result of counting an idleresource may be determined as a part of the monitoring report mayspecifically include the following: in one discovery time domain, aquantity of times of existence of idle resource selection is counted toobtain a quantity of success times; in the discovery time domain, aquantity of times of nonexistence of idle resource selection is countedto obtain a quantity of failure times; the quantity of success times andthe quantity of failure times are determined as a part of the monitoringreport. That is, the monitoring report may further include the quantityof success times and the quantity of failure times, the quantity ofsuccess times is obtained by counting a quantity of times of existenceof idle resource selection in each discovery time domain, and thequantity of failure times is obtained by counting a quantity of times ofnonexistence of idle resource selection in each discovery time domain.

That is, when monitoring a discovery resource, in an entire monitoringprocess, the user equipment may add a monitored idle resource to an idleresource list, and when an SMS message needs to be sent by using an idleresource, may search the idle resource list for an available idleresource. When a selectable idle resource exists, 1 may be added to thequantity of success times, or when a selectable idle resource does notexist, 1 may be added to the quantity of failure times. Finally, in theentire monitoring process, the counted quantity of success times and thecounted quantity of failure times are determined as a part of themonitoring report. The monitoring process described herein includes amonitoring process starting from a discovery time domain for startingmonitoring to a discovery time domain in which it is counted that thereare the predetermined quantity of consecutive discovery time domains inwhich the proportion of the busy resource or the idle resource meets thereporting condition.

For example, still referring to FIG. 7B, if a monitoring process startsfrom discovery time domain 1, the value of the predetermined quantity is3. When it is found, by means of monitoring, that a proportion of thebusy resource in discovery time domain 2, a proportion of the busyresource in discovery time domain 3, and a proportion of the busyresource in discovery time domain 4 meet the reporting conditioncorresponding to the busy resource, the entire monitoring processincludes discovery time domain 1 to discovery time domain 4. When thequantity of success times and the quantity of failure times are counted,values of these two parameters are accumulated continuously in fourdiscovery time domains: discovery time domain 1, discovery time domain2, discovery time domain 3, and discovery time domain 4; and finally, aquantity of success times obtained by means of accumulation in the fourdiscovery time domains and a quantity of failure times obtained by meansof accumulation in the four discovery time domains as a part of themonitoring report. Apparently, only the quantity of success timesobtained by means of accumulation may be used as a part of themonitoring report, or only the quantity of failure times obtained bymeans of accumulation may be used as a part of the monitoring report.

In conclusion, according to the monitoring report generation methodprovided in this embodiment of the present disclosure, energy of eachdiscovery resource in a resource pool is monitored within a discoverytime domain; and it is determined, according to the energy of eachdiscovery resource, whether a proportion of a busy resource or an idleresource in the discovery time domain meets a corresponding reportingcondition, a monitoring report is generated by using the proportion ofthe busy resource or the idle resource when the reporting condition ismet, and the monitoring report is sent to a base station. This resolvesa problem in the related technology that: because D2D user equipmentcannot accurately obtain a quantity of resource collision times in acell, the base station cannot accurately learn a resource status in thecell. Because the D2D user equipment may accurately monitor energy of adiscovery resource, and determine a monitoring report according to theenergy of the discovery resource, the monitoring report reported to thebase station may relatively accurately reflect the resource status inthe cell, and it is ensured that the base station can accurately learnthe resource status in the cell.

It should be additionally noted that step 701, step 702, step 703, step704, step 705, step 706, step 709, and step 710 may be separatelyimplemented as a monitoring report generation method, or step 701, step702, step 703, step 704, step 707, step 708, step 709, and step 710 maybe separately implemented as a monitoring report generation method.

Persons of ordinary skill in the art may be aware that, in combinationwith the examples described in the embodiments disclosed in thisspecification, units and algorithm steps may be implemented byelectronic hardware or a combination of computer software and electronichardware. Whether the functions are performed by hardware or softwaredepends on particular applications and design constraint conditions ofthe technical solutions. Persons skilled in the art may use differentmethods to implement the described functions for each particularapplication, but it should not be considered that the implementationgoes beyond the scope of the present disclosure.

It may be clearly understood by persons skilled in the art that, for thepurpose of convenient and brief description, for a detailed workingprocess of the foregoing system, apparatus, and unit, reference may bemade to a corresponding process in the foregoing method embodiments, anddetails are not described herein again.

In the several embodiments provided in the present application, itshould be understood that the disclosed system, apparatus, and methodmay be implemented in other manners. For example, the describedapparatus embodiment is merely exemplary. For example, the unit divisionmay merely be logical function division and may be other division inactual implementation. For example, a plurality of units or componentsmay be combined or integrated into another system, or some features maybe ignored or not performed. In addition, the displayed or discussedmutual couplings or direct couplings or communication connections may beimplemented by using some interfaces. The indirect couplings orcommunication connections between the apparatuses or units may beimplemented in electronic, mechanical, or other forms.

The units described as separate parts may or may not be physicallyseparate, and parts displayed as units may or may not be physical units,may be located in one position, or may be distributed on a plurality ofnetwork units. Some or all of the units may be selected according toactual needs to achieve the objectives of the solutions of theembodiments.

In addition, functional units in the embodiments of the presentdisclosure may be integrated into one processing unit, or each of theunits may exist alone physically, or two or more units are integratedinto one unit.

When the functions are implemented in the form of a software functionalunit and sold or used as an independent product, the functions may bestored in a computer-readable storage medium. Based on such anunderstanding, the technical solutions of the present disclosureessentially, or the part contributing to the prior art, or some of thetechnical solutions may be implemented in a form of a software product.The software product is stored in a storage medium, and includes severalinstructions for instructing a computer device (which may be a personalcomputer, a server, or a network device) to perform all or some of thesteps of the methods described in the embodiments of the presentdisclosure. The foregoing storage medium includes: any medium that canstore program code, such as a USB flash drive, a removable hard disk, aread-only memory (Read-Only Memory, ROM), a random access memory (RandomAccess Memory, RAM), a magnetic disk, or an optical disc.

The foregoing descriptions are merely specific implementation manners ofthe present disclosure, but are not intended to limit the protectionscope of the present disclosure. Any variation or replacement readilyfigured out by persons skilled in the art within the technical scopedisclosed in the present disclosure shall fall within the protectionscope of the present disclosure. Therefore, the protection scope of thepresent disclosure shall be subject to the protection scope of theclaims.

What is claimed is:
 1. A method comprising: receiving, from a basestation, first monitoring parameters comprising: an energy thresholdcorresponding to a first resource in a resource pool; and a reportingcondition corresponding to the first resource and the resource pool;monitoring, for at least one time period, energy of at least oneresource in the resource pool; determining, based at least in part onthe energy of the at least one resource in the resource pool beinggreater than the energy threshold corresponding to the first resource,the first resource in the at least one time period; sending, to the basestation, a first monitoring report comprising, a proportion of the firstresource that satisfies the reporting condition corresponding to thefirst resource.
 2. The method according to claim 1, further comprising:calculating the proportion of the first resource in the at least onetime period.
 3. The method according to claim 1, further comprising:generating a random number; and when the random number is greater than aprobability threshold, sending the first monitoring report to the basestation.
 4. The method according to claim 1, further comprising:receiving, from the base station, second monitoring parameterscomprising: an energy threshold corresponding to a second resource; anda reporting condition corresponding to the second resource; determining,based at least in part on the energy of the at least one resource in theresource pool, the second resource in the at least one time period,wherein the second resource is a resource in the resource pool whoseenergy is less than the energy threshold corresponding to the secondresource; sending, to the base station, a second monitoring reportcomprising, a proportion of the second resource that meets the reportingcondition corresponding to the second resource.
 5. The method accordingto claim 4, wherein the second monitoring report further comprises aquantity of a selectable second resource among the second resource inthe at least one time period, and a quantity of an unselectable secondresource among the second resource in the at least one time period. 6.The method according to claim 4, further comprising: generating theproportion of the second resource in the at least one time period bydividing a quantity of the second resource by a sum of a quantity of thefirst resource and the quantity of the second resource.
 7. An apparatusapplied to a user equipment side, comprising: a receiver configured toreceive, from a base station, first monitoring parameters comprising; anenergy threshold corresponding to a first resource in a resource pool;and a reporting condition corresponding to the first resource and theresource pool; a processor configured to: monitor, for at least one timeperiod, energy of at least one resource in the resource pool; anddetermine, based at least in part on the energy of the at least oneresource, the first resource in the at least one time period, whereinthe first resource is a resource in the resource pool, whose energy isgreater than the energy threshold corresponding to the first resource; atransmitter is configured to send, to the base station, a firstmonitoring report, wherein the first monitoring report comprises aproportion of the first resource that satisfies the reporting conditioncorresponding to the first resource.
 8. The apparatus according to claim7, wherein the processor is further configured to calculate theproportion of the first resource in the at least one time period.
 9. Theapparatus according to claim 7, wherein the processor is furtherconfigured to generate a random number; and the transmitter is furtherconfigured to send the first monitoring report to the base station whenthe random number is greater than a probability threshold.
 10. Theapparatus according to claim 7, wherein the receiver is furtherconfigured to receive, from the base station, second monitoringparameters comprising: an energy threshold corresponding to a secondresource; and a reporting condition corresponding to the secondresource; the processor is further configured to determine the secondresource in the at least one time period, wherein the second resource isa resource in the resource pool whose energy is less than the energythreshold corresponding to the second resource; and the transmitter isfurther configured to send, to the base station, a second monitoringreport comprising a proportion of the second resource which meets thereporting condition corresponding to the second resource.
 11. Theapparatus according to claim 10, wherein the second monitoring reportfurther comprises a quantity of a selectable second resource among thesecond resource in the at least one time period, and a quantity of anunselectable second resource among the second resource in the at leastone time period.
 12. The apparatus according to claim 10, wherein theprocessor is further configured to generate the proportion of the secondresource in the at least one time period by dividing a quantity of thesecond resource by a sum of a quantity of the first resource and thequantity of the second resource.
 13. A non-transitory computer-readablestorage medium having stored thereon instructions for causing at leastone computer system to perform one or more functions, the instructionscomprising: receiving, from a base station, first monitoring parameterscomprising: an energy threshold; and a reporting condition; monitoring,for at least a first time period, energy of at least one resource in aresource pool; determining, based at least in part on the energy of theat least one resource in the resource pool being greater than the energythreshold, a first resource; sending, to the base station, a firstmonitoring report comprising a proportion of the first resource thatmeets the reporting condition.
 14. The non-transitory computer-readablestorage medium of claim 13, the instructions further comprising:calculating the proportion of the first resource in the first timeperiod.
 15. The non-transitory computer-readable storage medium of claim13, the instructions further comprising: generating a random number; andwhen the random number is greater than a probability threshold, sendingthe first monitoring report to the base station.
 16. The non-transitorycomputer-readable storage medium of claim 13, the instructions furthercomprising: receiving, from the base station, second monitoringparameters comprising: a second energy threshold; and a second reportingcondition determining, based at least in part on the energy of the atleast one resource in the resource pool, a second resource in the firsttime period, wherein the second resource is a resource in the resourcepool whose energy is less than the second energy threshold; sending, tothe base station, a second monitoring report comprising a proportion ofthe second resource that meets the second reporting condition.
 17. Thenon-transitory computer-readable storage medium of claim 16, wherein thesecond monitoring report further comprises a quantity of a selectablesecond resource among the second resource in the first time period, anda quantity of an unselectable second resource among the second resourcein the first time period.
 18. The non-transitory computer-readablestorage medium of claim 16, the instructions further comprising:generating the proportion of the second resource in the first timeperiod by dividing a quantity of the second resource by a sum of aquantity of the first resource and the quantity of the second resource.